home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / games / IndiZone / sw / README < prev    next >
Encoding:
Text File  |  1994-08-02  |  3.4 KB  |  93 lines

  1. SpaceWar
  2. --------
  3.  
  4. SpaceWar has two executables:  the server and the game.
  5.  
  6. The server:
  7.     The server code should run on any UNIX system.  It registers players,
  8. passes important messages between them, and handles contention for non-
  9. sharable resources (namely flags).  Start the server on any system, then
  10. use the server's hostname when starting the game.
  11.  
  12. The game:
  13.     The game code uses Inventor, Motif, and GL and therefore only runs
  14. on systems with graphics heads (it requires a Z buffer too).
  15.  
  16. Playing:
  17.    To play first start the server on some system (type 'sws').  The server
  18. will take up very little CPU time even when a game is going on because it
  19. only wakes up when there is an important message to handle.  It ignores
  20. the ship information broadcast packets flooding the network.
  21.    Once the server is running, players may join.  You must supply a server
  22. to connect to, a team to play on, and a call sign to use.  The usage is:
  23.     sw -n callsign -s server teamname
  24. The first character of teamname is significant and may be one of 'r', 'g',
  25. 'b', or 'p' for the red, green, blue, or purple team, respectively.
  26.    See the help pages (sw.hlp in showcase format) for detailed information
  27. on how to play.
  28.  
  29.  
  30. Implementation notes:
  31.   *  I needed to fix /usr/include/gl/image.h to work with C++.
  32.     The only change was to add parameters to the iopen call.
  33.     Original: IMAGE *iopen();
  34.     Fixed: IMAGE *iopen(char*, char*);
  35.      IMPORTANT!!!  This change must be made for the program to compile.
  36.  
  37.   *  The explosion movie was shamelessly sampled from "Star Wars"
  38.     so there may be some copyright problems.
  39.  
  40.   *  The audio was taken from the Prosonus sounds and the bz sounds
  41.     supplied with IRIS systems.
  42.  
  43.   *  You may notice some references to a radio.  This was not
  44.     implemented.
  45.  
  46.   *  The explosion display sometimes causes a graphics FIFO timeout.
  47.     This is not consistently reproducible (it's pretty rare).
  48.     The following are taken from SYSLOG:
  49.         WARNING: Gr2PixelDma: TIMEOUT gfx DMA did not complete
  50.                         (finish flag not set)
  51.         WARNING: Gr2PcxSwap: TIMEOUT gfx context switch did not
  52.                         complete (Start)
  53.         WARNING: Graphics error: GE PC = 0x4056
  54.  
  55.   *  Much of the game can be customized with resources.  The following
  56.     resources are defined (listed with the app-defaults):
  57.  
  58. sw*label*fontList:        -*-helvetica-bold-r-normal-*-14-*
  59. sw*info*fontList:        -*-helvetica-medium-r-normal-*-14-*
  60. sw*XmText.background:        #999999
  61. sw*status*fractionBase:        10
  62. sw*status*rightPosition:    3
  63. sw*weapons*label.labelString:    Weapons:
  64. sw*shields*label.labelString:    Shields:
  65. sw*laser*label.labelString:    Laser:
  66. sw*missile*label.labelString:    Missiles:
  67. sw*thrust*label.labelString:    Thrust:
  68. sw*fuel*label.labelString:    Fuel:
  69. sw*radio*label.labelString:    Radio:
  70. sw*radio*off.labelString:    Off
  71. sw*radio*team.labelString:    Team
  72. sw*radio*all.labelString:    All
  73. sw*sound*label.labelString:    Sound:
  74. sw*sound*off.labelString:    Off
  75. sw*sound*warning.labelString:    Warn
  76. sw*sound*all.labelString:    All
  77. sw*radar*label.labelString:    Radar:
  78. sw*target*label.labelString:    Target:
  79. sw*message*label.labelString:    Messages:
  80. sw*score*label.labelString:    Score:
  81. sw*players*label.labelString:    Players:
  82. sw*flag*label.labelString:    Flag:
  83. sw*pause.labelString:        Pause
  84. sw*help.labelString:        Help
  85. sw*quit.labelString:        Quit
  86. sw*regularName:            Regular
  87. sw*explosionDirectory:        .
  88. sw*soundsDirectory:        .
  89. sw*geometry:            1000x740
  90.  
  91. The geometry resource given is suitable for small displays.  For a larger
  92. display 1280x880 works better.
  93.